home *** CD-ROM | disk | FTP | other *** search
- Path: user1.mnsinc.com!huang
- From: huang@mnsinc.com (Szu-Wen Huang)
- Newsgroups: comp.lang.c
- Subject: Re: "Best fit" algorithm (help)
- Date: 1 Apr 1996 14:26:24 GMT
- Organization: Monumental Network Systems
- Message-ID: <4jop2g$m9p@news1.mnsinc.com>
- References: <APC&7'0'22b6b83'874@peg.apc.org> <4jhlu7$5m2@airdmhor.gen.nz> <4ji4b1$jc5@news1.mnsinc.com> <4jnq7t$643@airdmhor.gen.nz>
- NNTP-Posting-Host: user1.mnsinc.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Simon Hosie (gumboot@airdmhor.gen.nz) wrote:
-
- : Szu-Wen Huang:
- : > The solution to the knapsack problem is to randomly allocate?! I'm
- : > fairly sure my algorithm teacher doesn't know this yet. Care to show
- : > some numbers? *Chuckle*
-
- : He said it was faster than brute force. I couldn't be bothered writing my
- : own so I just accepted it. It's got me curious, now, I think I might have a
- : go at it.
-
- The knapsack problem has a large search space, and is NP I think. That
- generally means a random search won't get you very far.
-